package cn.hdu.liang.ccio;

import java.io.IOException;
import java.io.Reader;
import java.io.Writer;

public class CharUtil {
    public static void dump(Reader src, Writer dest) throws IOException {
        try(Reader input = src;
            Writer out = dest) {
            char[] data = new char[1024];
            int len;
            while((len = input.read(data)) != -1) {
                out.write(data, 0, len);
            }
        }
    }
}
